]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: Move from TapAction to ClickGesture
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 18 Mar 2022 13:24:26 +0000 (14:24 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 28 Aug 2025 17:14:06 +0000 (19:14 +0200)
ClutterClickGesture is a new subclass of ClutterGesture and implements
the same functionality as the TapAction and ClutterClickAction did,
which is why those will get removed. So move to ClutterClickGesture here
for the tap gesture.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2853>

js/ui/unlockDialog.js

index 50c512fb592c08a7a8dcc2a343bcab7079898420..163d16fa05a25424cd9a8926e7cb05737959eb02 100644 (file)
@@ -564,9 +564,9 @@ export const UnlockDialog = GObject.registerClass({
 
         this._activePage = null;
 
-        let tapAction = new Clutter.TapAction();
-        tapAction.connect('tap', this._showPrompt.bind(this));
-        this.add_action(tapAction);
+        const clickGesture = new Clutter.ClickGesture();
+        clickGesture.connect('recognize', () => this._showPrompt());
+        this.add_action(clickGesture);
 
         // Background
         this._backgroundGroup = new Clutter.Actor();